{extend name="default/base/base_seller" /}
{block name="seller_main"}
<form method="get">
    <table class="search-form">
        <tr>
            <td>&nbsp;</td>
            <th>{$Think.lang.instant_message_from_type}</th>
            <td class="w100"><input type="text" class="text w80" name="f_name"
                                    value="{$Request.get.f_name}" /></td>
            <th>{$Think.lang.instant_message_to_type}</th>
            <td class="w160"><input type="text" class="text w150" name="t_name"
                                    value="{$Request.get.t_name}" /></td>
            <th>{$Think.lang.start_to_stop_time}</th>
            <td class="w240">
                <input name="add_time_from" id="add_time_from" type="text" class="text w70"
                       value="{$Request.get.add_time_from}" />
                <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>&nbsp;&#8211;&nbsp;
                <input name="add_time_to" id="add_time_to" type="text" class="text w70"
                       value="{$Request.get.add_time_to}" />
                <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
            </td>
            <td class="w70 tc">
                <input type="submit" class="submit" value="{$Think.lang.ds_search}" />
            </td>
        </tr>
    </table>
</form>
<table class="dssc-default-table">
    <thead>
        <tr class="thead">
          <th class="w24">{$Think.lang.instant_message_id}</th>
          <th>{$Think.lang.instant_message_from_type}</th>
          <th>{$Think.lang.instant_message_to_type}</th>
          <th>{$Think.lang.message_content}</th>
          <th class="w200 align-center" >{$Think.lang.instant_message_add_time}</th>
        </tr>
    </thead>
    <tbody>
        {if $instant_message_list}
        {foreach name="instant_message_list" item="v"}
        <tr class="hover edit" id="ds_row_{$v.instant_message_id}">
          <td>{$v.instant_message_id}</td>
          <td>[{$Think.lang.instant_message_type_text[$v['instant_message_from_type']]}]{$v.instant_message_from_name}</td>
          <td>[{$Think.lang.instant_message_type_text[$v['instant_message_to_type']]}]{$v.instant_message_to_name}</td>
          <td>{:parsesmiles($v['instant_message'],$v['instant_message_type'])}</td>
          <td>{$v.instant_message_add_time|date='Y-m-d H:i'}</td>
         
        </tr>
 
        {/foreach}
        {else}
        <tr>
            <td colspan="20" class="norecord">
                <div class="warning-option"><i
                        class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div>
            </td>
        </tr>
        {/if}
    </tbody>
</table>
{$show_page|raw}
<script type="text/javascript">
    $(document).ready(function () {
        $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
        $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>

{/block}
